﻿{#if $T.length == 0} <b>Không có dữ liệu</b>
{#else}
     {#foreach $T.ListData as entity} 
     
<div class="broadcast">
	<div class="slide_image">
		 <a href="/course/{$T.entity.DocumentId}-{$.dalatcooking.removeDiacriticsURL($T.entity.Name)}" title="{$T.entity.Name}">
          
            <img alt="{$T.entity.Name}" class="with_border" height="130" src="/ThumbnailHandler.axd?img={$T.entity.Picture}&size=130" width="130" /></a>
	</div>
	<div class="slide_content">
		<h4>
             <a href="/document/{$T.entity.DocumentId}-{$.dalatcooking.removeDiacriticsURL($T.entity.Name)}" title="{$T.entity.Name}">{$T.entity.Name}</a></h4>
		<h4>

               
                        
		</h4>
		<p class="light">Thêm bởi: &bull; {$T.entity.CreatedBy}</p>
		<p> {$T.entity.Description}.</p>        
	</div>
</div>
<hr />        

	
{/#for}
 {#/if}

 <!-- Code paging -->
          <legend class="transparent">

             <div class="pagination">
        <div class="pagination">

         <!--
                <span class="previous_page disabled">&#8592; Previous</span> 
                <em class="current">1</em> <a rel="next" href="/amplified/page/2">2</a>
                 <a href="/amplified/page/3">3</a> <a href="/amplified/page/4">4</a>
                
                 <a class="next_page" rel="next" href="/amplified/page/2">Next &#8594;</a>
            -->
         
             {#if $T.PageSize >= $T.TotalRecords} Có tất cả {$T.TotalRecords} tài liệu
                {#else}

               {#if $T.CurrentPage > 1}
                <a class="previous_page" rel="prev start" href="#" onclick="return $.dalatcooking.jsonCourse_loadDocumentByCourseId('#placeholder',5,{$T.CurrentPage - 1});">&#8592; Trang trước</a>
                {#else}
                 <span class="previous_page disabled">&#8592; Trang trước</span> 
                 {#/if}
                {#for index = 1 to  $T.TotalPages}               
                    {#if $T.index == $T.CurrentPage}
                        <em class="current">{$T.CurrentPage}</em> 
                    {#else}
                     <a href="#" onclick="return $.dalatcooking.jsonCourse_loadDocumentByCourseId('#placeholder',5,{$T.index});">{$T.index}</a>          
                    {#/if}                                              
                {#/for}
                {#if $T.CurrentPage <  $T.TotalPages}
                <a class="next_page" rel="next" href="#" onclick="return $.dalatcooking.jsonCourse_loadDocumentByCourseId('#placeholder',5,{$T.CurrentPage + 1});">Trang sau &#8594;</a>
                  {#else}
                 <span class="ext_page disabled">Trang sau &#8594;</span>     
            {#/if}
               

            &nbsp;&nbsp;&nbsp;Trang:  
                 <select id="Select1" class="PageSelector" onchange="return $.dalatcooking.jsonCourse_loadDocumentByCourseId('#placeholder',5,this.value);"">
                <option value="0">Select</option>
                {#for index = 1 to $T.TotalPages}
                <option {#if $T.index == $T.CurrentPage } selected="selected"{#/if} value="{$T.index}">{$T.index}</option>
                {#/for}
            </select> của {$T.TotalRecords} Khóa học
            {#/if}
            
        </div>
    </div>
        </legend>





